package com.wecan.oauth.DTO.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @Author liuzhihao
 * @Date 2022.01.20
 * @Version ${version}
 * @Description ${description}
 */
@Schema(title = "手机参数")
@Data
public class PhoneDTO {
    @Schema(title = "手机号")
    @NotNull(message = "手机号不能空")
    @Pattern(regexp = "^1(3|4|5|6|7|8|9)\\d{9}$", message = "手机号格式错误")
    private String phone;
}
